import { createRouter, createWebHashHistory } from 'vue-router'
import Login from "../view/Login";
import Home from "../view/Home";
export const routes=[
    {
        path:'/home',
        name:"首页",
        component:Home
    },
    {
        path:'/',
        name:"登录页",
        component:Login
    }
];

const router = createRouter({
    history:createWebHashHistory(),
    routes
});

export default router;
